<link rel="stylesheet" href="<?php echo $this->basePath('css/form-signin.css'); ?>" />

<?php
$form = $this->loginForm;
$form->prepare();
$form->setAttribute('action', $this->url('zfcuser/login'));
$form->setAttribute('method', 'post');
$form->setAttribute('class', 'form-signin');
?>

<div class="row">
    <div class="col-md-6 col-md-offset-3">

        <?php echo $this->form()->openTag($form) ?>

            <dl class="zend_form">
                <?php echo $this->formElementErrors($form->get('identity'), array('class' => 'text-danger')) ?>

                <dt><?php echo $this->formLabel($form->get('identity')) ?></dt>
                <dd><?php echo $this->formInput($form->get('identity')) ?></dd>

                <dt><?php echo $this->formLabel($form->get('credential')) ?></dt>
                <dd><?php echo $this->formInput($form->get('credential')) ?></dd>

                <?php if ($this->redirect): ?>
                    <input type="hidden" name="redirect" value="<?php echo $this->escapeHtml($this->redirect) ?>" />
                <?php endif ?>

                <dd><?php echo $this->formButton($form->get('submit')) ?></dd>
            </dl>

        <?php echo $this->form()->closeTag() ?>

    </div>
</div>
    
<?php if ($this->enableRegistration) : ?>
<div class="text-center">
    <p>
        <a class="btn btn-warning" href="<?php echo $this->url('zfcuser/register') . ($this->redirect ? '?redirect='.$this->redirect : '') ?>">Je n'ai pas encore de compte</a>
    </p>
</div>
<?php endif; ?>
